class HistoryRecordBean {

  String title;
  List<RecordBean> list;
  HistoryRecordBean({this.title, this.list});
  HistoryRecordBean.fromJson(Map<String, dynamic> json) {    
    this.title = json['title'];
    this.list = (json['list'] as List)!=null?(json['list'] as List).map((i) => RecordBean.fromJson(i)).toList():null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['title'] = this.title;
    data['list'] = this.list != null?this.list.map((i) => i.toJson()).toList():null;
    return data;
  }

}

class RecordBean {
  String userName;
 // String subTitle;
  // String remark;
  String createdAt;
  int    dataId;

  RecordBean({this.userName, this.createdAt, this.dataId});
  RecordBean.fromJson(Map<String, dynamic> json) {
    this.userName = json['userName'];
    this.createdAt =  json['createdAt'];
    this.dataId = json['dataId'];
  }
  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['userName'] = this.userName;
    data['createdAt'] = this.createdAt;
    data['dataId'] = this.dataId;
    return data;
  }
}
